package request

type TmallServicecenterWorkcardUpdatelogisticsRequest struct {
	/*
	   工单号     */
	WorkcardId *int64 `json:"workcard_id" required:"true" `
	/*
	   工单操作     */
	Action *string `json:"action" required:"true" `
	/*
	   快递公司     */
	ExpressCompany *string `json:"express_company,omitempty" required:"false" `
	/*
	   快递号     */
	ExpressCode *string `json:"express_code,omitempty" required:"false" `
}

func (s *TmallServicecenterWorkcardUpdatelogisticsRequest) SetWorkcardId(v int64) *TmallServicecenterWorkcardUpdatelogisticsRequest {
	s.WorkcardId = &v
	return s
}
func (s *TmallServicecenterWorkcardUpdatelogisticsRequest) SetAction(v string) *TmallServicecenterWorkcardUpdatelogisticsRequest {
	s.Action = &v
	return s
}
func (s *TmallServicecenterWorkcardUpdatelogisticsRequest) SetExpressCompany(v string) *TmallServicecenterWorkcardUpdatelogisticsRequest {
	s.ExpressCompany = &v
	return s
}
func (s *TmallServicecenterWorkcardUpdatelogisticsRequest) SetExpressCode(v string) *TmallServicecenterWorkcardUpdatelogisticsRequest {
	s.ExpressCode = &v
	return s
}

func (req *TmallServicecenterWorkcardUpdatelogisticsRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.WorkcardId != nil {
		paramMap["workcard_id"] = *req.WorkcardId
	}
	if req.Action != nil {
		paramMap["action"] = *req.Action
	}
	if req.ExpressCompany != nil {
		paramMap["express_company"] = *req.ExpressCompany
	}
	if req.ExpressCode != nil {
		paramMap["express_code"] = *req.ExpressCode
	}
	return paramMap
}

func (req *TmallServicecenterWorkcardUpdatelogisticsRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
